﻿namespace Iot.AlarmDispose;

public class AlertConfiguration
{
    /// <summary>
    ///     默认的cron表达式     每周三凌晨3点10分触发
    /// </summary>
    public const string DefaultCronExpression = "10 3 * * 3";

    /// <summary>
    ///     报警历史数据保留天数
    /// </summary>
    public const int DefaultStorageDays = 31 * 6; // 31 * 6 days;

    /// <summary>
    ///     调度警报处理作业的cron表达式
    /// </summary>
    public string CronExpression { get; set; } = DefaultCronExpression;

    /// <summary>
    ///     报警历史数据保留天数
    /// </summary>
    public int StorageDays { get; set; } = DefaultStorageDays; // 31 * 6 days;
}